package com.cvs.controller;

import com.cvs.service.LevelService;
import com.cvs.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloWorldController {
    @Autowired
    private UserService userService;
    @Autowired
    private LevelService levelService;
    @RequestMapping("/hello")
    public @ResponseBody String hello(){
        System.out.println(userService.findall());
        return "xxxhello";
    }
}
